<template>
  <!-- banner -->
  <el-carousel :interval="4000" type="card" height="200px">
    <el-carousel-item v-for="item in bannerList">
      <img :src="item.picurl" key="item.actid" />
      <h3 text="2xl" justify="center">{{ item }}</h3>
    </el-carousel-item>
  </el-carousel>

  <!-- main -->
  <div class="main" v-for="item in albumList" :key="item.actid">
    <div class="main-title">
      <h2>最近上架</h2>
    </div>
    <div class="album-list-container">
      <div class="album-list-box">
        <ul class="album-list-ul">
          <li class="album-list-li">
            <a :href="item.buypage" class="album-list-a">
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>

  <!-- main -->
  <div class="main">
    <div class="main-title">
      <h2>本周热卖</h2>
    </div>
    <div class="album-list-container">
      <div class="album-list-box">
        <ul class="album-list-ul">
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>

  <!-- main -->
  <div class="main">
    <div class="main-title">
      <h2>最新上架</h2>
    </div>
    <div class="album-list-container">
      <div class="album-list-box">
        <ul class="album-list-ul">
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>

  <!-- main -->
  <div class="main">
    <div class="main-title">
      <h2>最新上架</h2>
    </div>
    <div class="album-list-container">
      <div class="album-list-box">
        <ul class="album-list-ul">
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>

  <!-- main -->
  <div class="main">
    <div class="main-title">
      <h2>最新上架</h2>
    </div>
    <div class="album-list-container">
      <div class="album-list-box">
        <ul class="album-list-ul">
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>

  <!-- main -->
  <div class="main">
    <div class="main-title">
      <h2>最新上架</h2>
    </div>
    <div class="album-list-container">
      <div class="album-list-box">
        <ul class="album-list-ul">
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
          <li class="album-list-li">
            <a
              href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
              class="album-list-a"
            >
              <img
                class="album-list-img"
                src="https://y.qq.com/music/photo_new/T002R300x300M000001fzhks2kum8c.jpg?max_age=2592000"
            /></a>
            <div>
              <h4>
                <span>
                  <a
                    href="https://y.qq.com/n/ryqq/albumDetail/001fzhks2kum8c"
                    style="font-size: 14px; font-weight: 400; color: #999999"
                    >Mic ON</a
                  >
                </span>
              </h4>
            </div>
            <div class="album-list-author">
              <a href="https://y.qq.com/n/ryqq/singer/001p5MSX07YGwi">作者</a>
            </div>
            <div class="album-list-price">
              <strong>￥9</strong>
              <el-button type="default" class="album-list-btn" size="small"
                >立即购买</el-button
              >
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { onMounted } from "@vue/runtime-core";
import {
  getAlbumImgApi,
  getDigitalAlbumListApi,
} from "@/api/digitalAlbum/digitalAlbum";
import { ref } from "vue";
import { Banner } from "@/api/digitalAlbum/model/bannerModel";
export default {
  name: "DigitalAlbum",
  data() {
    return {
      imageUrl: [],
      content1: [],
    };
  },
};
</script>

<script lang="ts" setup>
const bannerList = ref([]);
const content = ref([]);
const ids = ref([]);
// const albumList = ref([]);

const getDigitalAlbumList = async () => {
  const res = await getDigitalAlbumListApi();
  bannerList.value = res.data.banner;
  content.value = res.data.content.filter(
    (item: { albumlist: string | any[] }) => {
      return item.albumlist.length > 4;
    }
  );

  // console.log(content.value[0].albumlist[0]);
  // console.log(content.value.length);
  // console.log(content.value[0].albumlist.length);
  // console.log(content.value[0].albumlist[0].album_mid);
  //  ids.value =
  for (let i = 0; i < content.value.length; i++) {
    const element = content.value[i].albumlist;
    // console.log(element);
    for (let j = 0; j < element.length; j++) {
      const id = element[j].album_mid;
      ids.value.push(id);
    }
  }
  console.log(ids.value);
  for (let a = 0; a < ids.value.length; a++) {
    const imgUrl = getAlbumImgApi(ids.value[a]);
  }
};
onMounted(getDigitalAlbumList);
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}

.el-carousel {
  --el-carousel-arrow-font-size: 50px;
  --el-carousel-arrow-size: 78px;
  --el-carousel-arrow-background: rgba(31, 45, 61, 0.11);
  --el-carousel-arrow-hover-background: rgba(31, 45, 61, 0.23);
  --el-carousel-indicator-width: 30px;
  --el-carousel-indicator-height: 2px;
  --el-carousel-indicator-padding-horizontal: 4px;
  --el-carousel-indicator-padding-vertical: 12px;
  --el-carousel-indicator-out-color: var(--el-border-color-hover);
  width: 100%;
}
:deep(.el-carousel__arrow) {
  border-radius: 0%;
  height: 108px;
  width: 78px;
}
:deep(button.el-carousel__arrow.el-carousel__arrow--left) {
  left: -84px;
}
:deep(button.el-carousel__arrow.el-carousel__arrow--right) {
  right: -238px;
}
:deep(.el-carousel__container) {
  margin-top: 50px;
  height: 305px !important;
  width: 1200px;
  margin-left: 84px;
}
:deep(.el-carousel__button) {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
/* :deep(div.el-carousel__item.is-active.is-in-stage.el-carousel__item--card) {
  display: block;
  width: 731px;
  height: 292px;
} */
/* main */
.el-row {
  margin-bottom: 20px;
}
.el-row:last-child {
  margin-bottom: 0;
}
.el-col {
  border-radius: 4px;
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
:deep(.el-row) {
  justify-content: center;
}
.main-title {
  margin: 0 auto;
  width: 1200px;
  height: 60px;
}
.main-title h2 {
  float: left;
  font-size: 24px;
  font-weight: 400;
  line-height: 58px;
}
.album-list-container {
  /* border: 1px solid black; */
  width: 1200px;
  height: 425px;
  margin: 0 auto;
}
.album-list-ul {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-content: center;
}
.album-list-li {
  width: 224px;
  height: 331px;
  padding-bottom: 44px;
  margin-bottom: 10px;
}
.album-list-a {
  /* border: 1px solid black; */
  display: block;
  width: 224px;
  height: 224px;
  overflow: hidden;
}
.album-list-img {
  transition: all 1s;
  opacity: 0.9;
  display: block;
  width: 224px;
  height: 224px;
  cursor: pointer;
}
.album-list-img:hover {
  transition: all 0.5s;
  opacity: 1;
  transform: scale(1.1);
}

.album-list-btn {
  margin-left: 125px;
}
.album-list-li a {
  text-decoration-line: none;
}
.album-list-li a:hover {
  color: rgb(153, 211, 91) !important;
}
.album-list-author {
  font-size: 14px;
  font-weight: 400;
}
.album-list-price strong {
  font-size: 14px;
  font-weight: 400;
  color: #999999;
  display: inline-block;
  margin-top: 10px;
}
</style>
<style>
body {
  margin: 0;
}
</style>
